﻿using J1502B.ZXMSC.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace J1502B.ZXMSC.IDAL
{
    /// <summary>
    /// 数据操作基类
    /// </summary>
    public interface IDALBase<T> where T : ModelBase
    {
        /// <summary>
        /// 插入一条数据
        /// </summary>
        /// <param name="info">实体对象</param>
        /// <returns>插入的数据的标识</returns>
        int InsertInfo(T info);

        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        List<T> Show();
    }
}
